package exception;

import java.io.FileNotFoundException;

public class ThrowDemo {
    public static void main(String[] args) {
        Student zc = new Student();
        try{
            zc.setAge(30);
        }catch(Exception e){
            System.out.println("有异常解决了");
        }
        System.out.println("从人年龄为"+zc.getAge()+"年龄");

    }
}
